package com.hm.hsw7;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        HashMap<Integer, Student> hashMap = new HashMap<>();
        Student s1 = new Student(1, "张三", 89.0);
        hashMap.put(s1.getId(), s1);
        ArrayList<Map<Integer, Student>> list = new ArrayList<>();
        list.add(hashMap);
        System.out.println(list);

    }
}
